package com.tuozixuan.factory.abstract1;

public class Client {
    
    public static void main(String[] args) {
        
        // 定义出两个工厂
        AbstractCreator creator1 = new Creator1();
        AbstractCreator creator2 = new Creator2();
        
        // 产生A1和A2对象
        AbstractProductA a1 = creator1.createAbstractProductA();
        AbstractProductA a2 = creator2.createAbstractProductA();
        
        // 产生B1和B2对象
        AbstractProductB b1 = creator1.createAbstractProductB();
        AbstractProductB b2 = creator2.createAbstractProductB();
    }
}
